<%@ page language="java" import="java.util.*,com.li.bean.*,com.li.daoimpl.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<% 
	StudentDaoImpl sdi = new StudentDaoImpl();
	List<Student> list = sdi.selectAll();	
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>表格展示</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">


<link rel="stylesheet" type="text/css" href="./CSS/index.css">

</head>

<body>
	<div id="left_div" align="center">
		<div id="left_top">
			<ul class="ul1">
				<li>填空</li>
				<li>单选</li>
				<li>多选</li>
				<li>判断</li>
			</ul>
		</div>
		<div id="left_bottom">
			<a class="a1" href="./login.html">退出系统</a>
		</div>
	</div>
	<div id="top_div"></div>
	<div id="center_div">
		<table id="tb1" border="2px" align="center">
			<tr>
				<td>序号</td>
				<td>姓名</td>
				<td>年龄</td>
				<td>性别</td>
				<td>省份</td>
				<td>班级名</td>
				<td>git账号</td>
			</tr>
		<%
			for(int i = 0;i<list.size();i++){
				Student stu = (Student)list.get(i);
		%>
			
			<tr>
				<td><%=stu.getId() %></td>
				<td><%=stu.getName() %></td>
				<td><%=stu.getAge() %></td>
				<td><%=stu.getSex() %></td>
				<td><%=stu.getProvincename() %></td>
				<td><%=stu.getClassname() %></td>
				<td><%=stu.getGitname() %></td>
			</tr>		
		<%}%>
		</table>
	</div>
</body>
</html>
